﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace blackhouse.WebNemo.Business.Extensionable {
    public class ImpExtensionManager : IExtensionManager {

        #region Properties

        public string GroupExtensionTypeDeclaration { get; set; }
        public string GroupRecordExtensionTypeDeclaration { get; set; }

        #endregion

        #region Methods

        public void SetGroupExtension(Type groupExtensionType) {
            this.GroupExtensionTypeDeclaration = (groupExtensionType == null) ? String.Empty : groupExtensionType.GetShortAssemblyQualifiedName();
        }

        public void SetGroupRecordExtension(Type groupRecordExtensionType) {
            this.GroupRecordExtensionTypeDeclaration = (groupRecordExtensionType == null) ? String.Empty : groupRecordExtensionType.GetShortAssemblyQualifiedName();
        }

        public void RemoveGroupRecordExtension() {
            this.SetGroupRecordExtension(null);
        }

        public void RemoveGroupExtension() {
            this.SetGroupExtension(null);
        }

        #endregion

    }
}
